<?php  
      
	if(!defined('IN_DISCUZ')) {  
		exit('Access Denied');  
	}  
      
	class plugin_font_resize {  
		
		//function global_footer(){ 
			//return '<script>alert("global_footer")</script>';  
		//}  
          
	}
	class plugin_font_resize_forum extends plugin_font_resize {
		
		function viewthread_title_extra(){  
			$str = "&emsp;<span style='cursor:pointer;color:red;' rel='font_resize'>".lang('plugin/font_resize','zoom_font')."</span>&nbsp;<span style='cursor:pointer;color:green;' rel='font_resize'>".lang('plugin/font_resize','narrow_font')."</span>&nbsp;<span style='cursor:pointer;color:black;' rel='font_resize'>".lang('plugin/font_resize','default_font')."</span>";  
			return $str;
		}
		function viewthread_postfooter(){
			$array = array();
			$scripts = '<script src="source/plugin/font_resize/js/jquery.min.js"></script><script>var _$ = jQuery.noConflict();var default_font_size = parseInt(_$("td.t_f:first").css("font-size"));var first_size = 16;var current_font_size = default_font_size;_$("span[rel=font_resize]").each(function(i, element){_$(element).live("click", function(){if(i == 0){_$("td.t_f, td.t_f *").css("font-size", ++first_size);}else if(i == 1){_$("td.t_f, td.t_f *").css("font-size", first_size == 16? --current_font_size : --first_size);}else if(i == 2){_$("td.t_f, td.t_f *").css("font-size", default_font_size);current_font_size = default_font_size;first_size = 16;}});});</script>';
			$array[] = $scripts;
			return $array;
		}
		
	}
 ?>